<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>format</title>
	</head>
	<body>
		<p id="app">{{nowTime}}</p>
		<a href="https://gitee.com/lsx589/js_get_now_time">去码云找</a>
	</body>
	<script src="https://cdn.bootcss.com/vue/2.6.9/vue.min.js"></script>
	<script src="format.js"></script>
	<script type="text/javascript">
		var app = new Vue({
			el: '#app',
			data: {
				nowTime: ''
			},
			created(){
				var  that = this
				that.init()
			},
			methods:{
				init(){
					this.nowTime = new Date().format("yyyy-MM-dd hh")
				}
			}
		})
	</script>
</html>
